import { createApp } from 'vue'
import App from './App.vue'
import router from './router.ts'
// ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// ElementPlus 国际化（默认英语），此处引入 zhCn 中文
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// ElementPlus icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App);



app.use(router);
app.use(ElementPlus, { locale: zhCn, size: 'default', zIndex: 3000 });
// 注册 ElementPlus icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
app.mount('#app');